import 'package:json_annotation/json_annotation.dart';

part 'item_style.g.dart';

@JsonSerializable(includeIfNull: false, explicitToJson: true)
class ItemStyle {
  var color;
  var borderColor;
  var borderWidth;
  var borderType;
  var borderDashOffset;
  var borderCap;
  var borderJoin;
  var borderMiterLimit;
  var shadowBlur;
  var shadowColor;
  var shadowOffsetX;
  var shadowOffsetY;
  var opacity;

  //decal lengend中此参数，

  var decal;


  ItemStyle(
      {this.color,
      this.borderColor,
      this.borderWidth,
      this.borderType,
      this.borderDashOffset,
      this.borderCap,
      this.borderJoin,
      this.borderMiterLimit,
      this.shadowBlur,
      this.shadowColor,
      this.shadowOffsetX,
      this.shadowOffsetY,
      this.opacity,
      this.decal});

  factory ItemStyle.fromJson(Map<String, dynamic> json) =>
      _$ItemStyleFromJson(json);
  Map<String, dynamic> toJson() => _$ItemStyleToJson(this);
}
